import ajax from '../ajax';
const base = "/cms/article/";
export default {
    list : ()=>ajax.get(base+"list"),
    get : (id)=>ajax.get(base+id),
    page :(params)=>ajax.get(base+"page",{params}),
    delete : (id)=>ajax.delete(base+id),
    add : (data)=>ajax.post(base,data),
    update : (data)=>ajax.put(base,data),
}